package com.lmf.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

@WebService     //向外暴露服务
public interface Hello {

    /**
     * @WebResult(name = "result"):给返回结果取别名
     * @WebParam(name = "username")：给参数取别名
     * @WebMethod(exclude=true):屏蔽方法
     * @param name
     * @param age
     * @return
     */
    @WebMethod  //向外暴露方法
    @WebResult(name = "result")
    public String sayHelloWorld(@WebParam(name = "username") String name, @WebParam(name = "userAge") int age);
}
